package com.guli.edu.client;

import com.guli.common.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("guli-vod")
@Component
public interface VodClient {

    /***
     * 根据视频id删除视频
     * @param videoId
     * @return
     */
    @DeleteMapping("/admin/vod/video/{videoId}")
     R removeVideo( @PathVariable("videoId") String videoId);


    /***
     * 批量删除视频
     * @param videoIdList
     * @return
     */
    @DeleteMapping(value = "/admin/vod/video/delete-batch")
    public R removeVideoList(@RequestParam("videoIdList") List videoIdList);

}
